import * as type from "./actionType"

export const create_topic_action = () => {
    return {
        type: type.create_topic,
    }
}

export const found_one_action = () => {
    return {
        type: type.found_one,
    }
}

export const found_reset_action = () => {
    return {
        type:type.found_reset
    }
}   

export const set_game_state_action = (value) => {
    return {
        type: type.set_game_state,
        value
    }
}

export const set_active_emoji_action = (value) => {
    return {
        type: type.set_active_emoji,
        value
    }
}

export const set_active_index_action = (value) => {
    return {
        type: type.set_active_index,
        value
    }
}

export const set_correct_index_action = (value) => {
    return {
        type: type.set_correct_index,
        value
    }
}

export const gain_time_action = (value) => {
    return {
        type: type.gain_time,
        value
    }
}

export const reduce_time_action = () => {
    return {
        type: type.reduce_time,

    }
}

export const reset_emojis_action = () => {
    return {
        type: type.reset_emojis
    }
}

export const set_playEnd_action = (value) => {
    return {
        type: type.set_playEnd,
        value
    }
}